package com.suncreate.zhtz.iot.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AdcModel {
    float ch1;
    float ch2;
    float ch3;
    float ch4;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS", timezone = "GMT+8")
    private Timestamp ts;

    public Timestamp getTs() {
        return ts;
    }

    public void setTs(Timestamp ts) {
        this.ts = ts;
    }

    public float getCh1() {
        return ch1;
    }

    public void setCh1(float ch1) {
        this.ch1 = ch1;
    }

    public float getCh2() {
        return ch2;
    }

    public void setCh2(float ch2) {
        this.ch2 = ch2;
    }

    public float getCh3() {
        return ch3;
    }

    public void setCh3(float ch3) {
        this.ch3 = ch3;
    }

    public float getCh4() {
        return ch4;
    }

    public void setCh4(float ch4) {
        this.ch4 = ch4;
    }
}
